<template>
  <el-card>
    <div class="mytool">
      <div class="left">
        <div v-if="leftShow" class="content">
          <slot name="left">
            <i class="el-icon-info" />
            本月：社保在缴 公积金在缴 增员 减员 入职 离职
          </slot>
        </div>
      </div>
      <div class="right">
        <slot name="right">
          <el-button type="primary" size="mini">历史归档</el-button>
          <el-button type="primary" size="mini">导出</el-button>
        </slot>
      </div>
    </div>
  </el-card>
</template>

<script>
export default {
  // leftShow：用来接收属性
  props: ['leftShow']
}
</script>

<style lang="scss">
.mytool {
  display: flex;
  justify-content: space-between;
  .left {
    .content {
      border: 1px solid #91d5ff;
      background-color: #e6f7ff;
      padding: 4px;
      font-size: 14px;
      i {
        color: #409eff;
      }
    }
  }
}
</style>
